from random import randint

def guess(MaxValue=100):
    value = randint(1,MaxValue)
    print("请输入数字x")
    while True:
        x = int(input())
        if x > value:
            print("数大")
        elif x < value:
            print("数小")
        else:
            print("正确",value)
            break
guess()








